package com.nq.fund.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: st_fund
 * @Author: jeecg-boot
 * @Date:   2024-06-03
 * @Version: V1.0
 */
@Data
@TableName("st_fund_service_charge")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class StFundServiceCharge implements Serializable {

	// 持有时间
	public static final String BACK_END_LOAD = "Back-End";
	// 管理费
	public static final String MANAGEMENT_FEE = "Management";

	private static final long serialVersionUID = 1L;
	// 单条
	public static final Integer SINGLE_YES = 0;
	// 多条
	public static final Integer SINGLE_NO = 1;

	/**
	 * 买入时
	 */
	public static final Integer BUY = 0;

	/**
	 * 卖出时
	 */
	public static final Integer SELL = 1;
	/**id*/
	@TableId(type = IdType.AUTO)
    private Integer id;
	// 基金ID
    private Integer fundId;
	/**fundName*/
	@Excel(name = "name", width = 15)
    private String name;
	@Excel(name = "手续费类型 0 买入时执行 1 卖出时执行 ", width = 15)
	private Integer type;
	// 是否有多条记录 0 没有 1 有
	private Integer single;
	@Excel(name = "proportion", width = 15)
    private BigDecimal proportion;
	/**createTime*/
    private Date createTime;
}
